const path = require("path");
const CustomWindow = require("../customWindow");

let settingWindow;
function createSettingWindow(event) {
  const filePath = `file://${path.resolve(
    __dirname,
    "../../../setting/index.html"
  )}`;
  settingWindow = new CustomWindow({ width: 500, height: 400 }, filePath);
}
function closeSettingWindow(event) {
  settingWindow.close();
  settingWindow = null;
}

module.exports = {
  createSettingWindow,
  closeSettingWindow,
};
